{include file=member.header.html}

<script type="text/javascript">
$(function () {
    var chart;
    $(document).ready(function() {
    	chart = new Highcharts.Chart({
    		chart: {
    			renderTo: 'container',
    			type: 'bar'
    		},
    		title: {
    			text: '{$main_title}'
    		},
    		subtitle: {
    			text: '{$sub_title}'
    		},
    		xAxis: {
    			categories: [{$result_goods_str}],
    			title: {
    				text: null
    			},
    			labels: {
	   		         style: {
		   		        fontSize: '12px'
	   		         }
 		      	}
    		},
    		yAxis: {
    			min: 0,
          allowDecimals: false,
    			title: {
    				text: '{$lang.stat_goods_sale_tip}',
    				align: 'high'
    			},
    			labels: {
    				overflow: 'justify'
    			}
    		},
    		tooltip: {
    			formatter: function() {
    				return ''+
    					this.series.name +': '+ this.y +' {$lang.stat_unit}';
    			}
    		},
    		plotOptions: {
    			bar: {
    				dataLabels: {
    					enabled: true
    				}
    			}
    		},
    		credits: {
    			enabled: false
    		},
    			series: [{
    			name: '{$lang.stat_sale}',
    			data: [{$result_clicknum_str}]
    		}]
    	});
    });
    
});
    $(function() {
        $('#add_time_from').datepicker({dateFormat: 'yymmdd'});
        $('#add_time_to').datepicker({dateFormat: 'yymmdd'});
    });
</script>
<style>
    .ncsc-btn-mini{color: #777;background-color: #F5F5F5;text-align: center;vertical-align: middle;display: inline-block;height:20px;line-height:20px; padding: 0 10px;margin-right: 2px;border: 1px solid #DCDCDC;cursor: pointer;}
</style>
<div class="content">
    {include file=member.menu.html}
    <div id="right">
        {include file=member.curlocal.html}
        {include file=member.submenu.html}
        <div class="wrap">
            <div class="public_index table1">
                <div class="search_order clearfix">
                    <form method="get" class="clearfix">
                        <div style="float:left;">
                            <a href="{url app=seller_stat_sale&act=goods}" id="week_flow" class="ncsc-btn-mini">{$lang.stat_week_sale}</a>
                            <a href="{url app=seller_stat_sale&act=goods&type=month}" id="month_flow" class="ncsc-btn-mini">{$lang.stat_month_sale}</a>
                            <a href="{url app=seller_stat_sale&act=goods&type=year}" id="year_flow" class="ncsc-btn-mini">{$lang.stat_year_sale}</a>
                        </div>    
                        <div style="float:right;">
                            <span class="title">{$lang.stat_time_search}:</span>
                            <input class="text_normal width2" type="text" name="add_time_from" id="add_time_from" value="{$smarty.get.add_time_from|escape}" /> &#8211; <input class="text_normal width2" id="add_time_to" type="text" name="add_time_to" value="{$smarty.get.add_time_to|escape}" />
                            <input type="hidden" name="app" value="seller_stat_sale" />
                            <input type="hidden" name="act" value="goods" />
                            <input type="submit" class="btn" value="{$lang.search}" />
                        </div>
                    </form>
                </div>
                <div id="container" style="width:990px; height:600px;margin: 0 auto"></div>
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
{include file=footer.html}